package com.neouton.crm.refundRecords.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neouton.common.util.PageUtil;
import com.neouton.crm.payRecords.entity.PaymentRecords;
import com.neouton.crm.refundRecords.entity.RefundRecordsVO;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface RefundRecordsService {

    int saveOrUpdateCustomer(RefundRecordsVO refundRecords, String token);

    PageUtil<RefundRecordsVO> getRedListByPage(IPage<RefundRecordsVO> page, RefundRecordsVO refundRecords, String orderBy, String token);

    void exportRef(HttpServletResponse response, RefundRecordsVO refundRecords, String token) throws Exception;

    Double getPayMoneySum(RefundRecordsVO refundRecords, String token);

    List<PaymentRecords> getPayRecordsByPurchaseOrderIds(Integer purchaseId);

    Boolean deleteRefund(Integer refundId,String token);

    Boolean approveRefundRecords(RefundRecordsVO refundRecords,String token,Boolean auto);

    Boolean rejectionRefundRecords(RefundRecordsVO refundRecords, String token);

    RefundRecordsVO getRefundInfoByApprovalId(Integer approvalId, String token);
}
